//
//  MyPostSectionHeaderView.h
//  BaseProject
//
//  Created by 王洋 on 2020/12/14.
//  Copyright © 2020 王洋. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CommonPostModel.h"
NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, MYPostSectionHeaderActionType) {
    //img
    MYPostSectionHeaderActionType_image,
    //eva
    MYPostSectionHeaderActionType_del,
};

@interface MyPostSectionHeaderView : UIView


@property (weak, nonatomic) IBOutlet UILabel *timeLab;

@property (weak, nonatomic) IBOutlet UILabel *contentLab;


@property (weak, nonatomic) IBOutlet NSLayoutConstraint *xiajiaHeight;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *postContentHeight;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *imageContentHeight;


@property (weak, nonatomic) IBOutlet UIImageView *contentImg1;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *contentImg1Scale;

@property (weak, nonatomic) IBOutlet UIImageView *contentImg2;

@property (weak, nonatomic) IBOutlet UIImageView *contentImg3;
@property (weak, nonatomic) IBOutlet UIView *contentImg3View;
@property (weak, nonatomic) IBOutlet UILabel *contentImg3Lab;


@property (weak, nonatomic) IBOutlet UIButton *tagBtn;

@property (weak, nonatomic) IBOutlet UIButton *delBtn;

@property (weak, nonatomic) IBOutlet UIButton *xiajiaBtn;

@property (weak, nonatomic) IBOutlet UILabel *evaThumbLab;


@property (nonatomic, copy) void(^MYPostSectionHeaderViewBlock)(MYPostSectionHeaderActionType type, NSInteger index);

+(CGFloat)calculateHWithModel:(CommonPostModel *)model;

- (void)fillWithModel:(CommonPostModel *)model;

@end

NS_ASSUME_NONNULL_END
